#include <gtest/gtest.h>
#include "l1calcapi.h"
TEST(l1calcapi, t1_sunnyday){
  int numbers[] = {1,2,3,4,5,6,7};
  l1api::l1DataType d1("d1", numbers, sizeof(numbers)/sizeof(int));

  EXPECT_EQ(4, l1api::calcMean(d1));
}

TEST(l1calcapi, t2_empty){
  int numbers[] = {};
  l1api::l1DataType d1("d1", numbers, 0);
  EXPECT_EQ(-1, l1api::calcMean(d1));
}
